﻿using Abp.Runtime.Validation;
using DHJ.Cost.Dto;
using DHJ.Cost.Workshops;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DHJ.Cost.CostRecord.Dto
{
    public class GetCostRecordsInput : PagedAndSortedInputDto, IShouldNormalize
    {
        public int Year { get; set; }

        public int Month { get; set; }

        public Workshop? Workshop { get; set; }
        public string Filter { set; get; }
        public void Normalize()
        {
            if (string.IsNullOrEmpty(Sorting))
            {
                Sorting = "CreationTime Desc";
            }
        }
    }
}
